<?php
require __DIR__.'/../vendor/autoload.php';

class actionDb
{
    private $dsn = 'mysql:dbname=laravel;host=loalhost;port=3306;';
    private $user = 'root';
    private $pwd = 'root';
    private $options = array();
    protected $dbObj = null;
    public function __construct()
    {
        if(empty($this->dbObj)){
            try{
                $this->dbObj = new PDO($this->dsn, $this->user, $this->pwd, $this->options);
            }catch (Exception $exception){
                exit($exception);
            }
        }
    }
}
